package com.cos.lession60.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author: COS
 * @time: 2022/3/15 10:47
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_employees")
public class Temployees {
    @TableId
    private Integer employeeId;
    private String firstName;
    private String lastName;
    private String email;
    private String phoneNumber;
    private Date hireDate;
    private String jobId;
    private Double salary;
    private Double commissionPct;
    private Integer managerId;
    @TableField(select = false)//设置为不查询的字段
    private Integer departmentId;
    //其他表的字段,其他通途的属性,不在数据库表中
    @TableField(exist = false) //不存在字段
    private String deptName;

}
